#找山峰
def feng(list):
    for i in range(1,len(list)-1):
        if list[i]> list[i-1] and list[i] >list[i+1]:
            return i

print(feng([2,4,1,2,7,8,4]))